package ogl;

public class FootSoldier extends Soldier{

	public final float red = 1f;
	public final float green = 1.5f;
	public final float blue = 1;
	
	private final float distanta = 300;
	
	public FootSoldier(float x, float y){
		this.x = x;
		this.y = y;		
	}
	
	
	@Override
	public void move(float x, float y) {
		
		if((x - this.x > distanta)||(y - this.y > distanta))
			System.out.println("Nu se poate face mutarea");
			
		else
		{
			this.x = x;
			this.y = y;
		}
		
	}

	@Override
	public void render(){
		Draw.rect(x, y, sx, sy, red, green, blue);
	}
	
}
